import request from '@/utils/request'//引入ajax
const api_name = '/admin/manage'
export const findMoption = () => {
    return request({
        url: `${api_name}/findMoption`,
        method: 'get'
    })
}
//添加数据
export const addMoption = (MoptionandmoveList) => {
    return request({
        url: `${api_name}/addMoption`,
        method: 'post',
        data:MoptionandmoveList
    })
}

//根据id查询信息
export const findMoptionById = (id) => {
    return request({
        url: `${api_name}/findMoptionById/${id}`,
        method: 'get',
    })
}
//修改信息 
export const updateMoption = (MoptionandmoveList) => {
    return request({
        url: `${api_name}/updateMoption`,
        method: 'put',
        data:MoptionandmoveList
    })
}
//根据id删除信息 
export const DeleteMoptionById = (id) => {
    return request({
        url: `${api_name}/DeleteMoptionById/${id}`,
        method: 'delete'
    })
}